package cn.hzc.fortess.spi.bean;


public class JwtResponse<T> implements  java.io.Serializable{

    private static final long serialVersionUID = 1L;


    private String code = JwtExceptionEnum.SUCCESS.getCode();
    private String message = JwtExceptionEnum.SUCCESS.getMessage();

    public JwtResponse(JwtExceptionEnum spiJwtCode) {
        this.code = spiJwtCode.getCode();
        this.message = spiJwtCode.getMessage();
    }

    public JwtResponse() {

    }

    private T data;

    public String getCode() {
        return code;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public T getData() {
        return data;
    }
}
